export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  dialogWidth:'70%',
  showClomnuBtn: false,
  searchLabelWidth:100,
  searchSize: 'mini',
  arrow:false,
  viewBtn:true,
  addBtn:false,
  editBtn: false,
  delBtn: false,
  selection:true,
  menu: true,
  selectable: (row, index)=>{
    return row.checkStatus != '2' && row.checkStatus != '3'
  },
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    addDisplay: false,
    editDisplay: false
  }, {
    label: '线路',
    prop: 'stationLine',
    type: 'select',
    search:'true',
    props: {
      label: 'name',
      value: 'code'
    },
    cascaderItem: ["stationCode"],
    dicUrl: "/support/swparamline/dict",
    rules: [{
      required: true,
      message: '请选择线路名称',
      trigger: 'blur'
    }]
  }, {
    label: '站点',
    prop: 'stationCode',
    type: 'select',
    search:true,
    dicFlag: false,
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamstation/dict/{{key}}",
    rules: [{
      required: true,
      message: '请选择站点名称',
      trigger: 'blur'
    }]
  }, {
    label: '原卡号',
    prop: 'oldCardOrder',
    search:true,
    rules: [{
      required: true,
      message: '原卡号',
      trigger: 'blur'
    }]
  }, {
    label: '票种',
    prop: 'ticketType',
    type: 'select',
    search:true,
    dicUrl: '/support/swpmticketcardtype/dict',
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      cascaderItem: ["ticketName"],
    rules: [{
      required: true,
      message: '请选择票种',
      trigger: 'blur'
    }]
  }, {
    label: '车票名称',
    prop: 'ticketName',
    search: true,
    type: 'select',
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    dicFlag: false,
    rules: [{
      required: true,
      message: '请选择车票名称',
      trigger: 'blur'
    }]
  }, 
  // {
  //   label: '票卡剩余次数',
  //   prop: 'ticketTimesRemain',
  //   rules: [{
  //     message: '请输入票卡剩余次数',
  //     trigger: 'blur'
  //   }],
  //   labelWidth:100,
  // }, {
  //   label: '票卡剩余金额',
  //   prop: 'ticketPriceRemain',
	// type: 'number',
	// precision: 2,
  //   labelWidth:100,
  //   rules: [{
  //     message: '请输入票卡剩余金额',
  //     trigger: 'blur'
  //   }]
  // }, 
  {
    label: '新发票卡次数',
    prop: 'ticketTimesRemain',
    rules: [{
      message: '请输入新发票卡次数',
      trigger: 'blur'
    }],
    labelWidth:100,
  }, {
    label: '新发票卡有效期',
    prop: 'activeTime',
    type: 'input',
    labelWidth:100,
    rules: [{
      message: '请输入新发票卡有效期',
      trigger: 'blur'
    }]
  }, 
  {
    label: '申请时间',
    prop: 'applyTime',
    type: 'datetime',
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    display:false,
  },
  {
    label: '申请时间',
    prop: 'applyTimeDTO',
    type: 'date',
    search: true,
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    hide:true,
    display:false,
  },
  {
    label: '数据来源',
    prop: 'dataSource',
    dicUrl: '/admin/dict/type/invalid_ticket_data_source',
    display:false
  },
  {
    label: '数据来源',
    prop: 'ticketSource',
    hide: true,
    display:false,
  }, {
    label: '是否生产',
    prop: 'isProduce',
    search: true,
    type: 'select',
    dicUrl: '/admin/dict/type/is_produce',
    rules: [{
      required: true,
      message: '请是否生产',
      trigger: 'blur'
    }],
    addDisplay:false,
    editDisplay:false,
  }, {
    label: '提交状态',
    prop: 'submitStatus',
    type: 'select',
    dicData:[{
      label: '未提交',
      value: '0'
    },{
      label: '已提交',
      value: '1'
    }],
    search: true,
    display: false
  }, {
    label: '审核状态',
    prop: 'checkStatus',
    search: true,
    searchValue: '1',
    type: 'select',
    dicUrl: '/admin/dict/type/check_status',
    rules: [{
      message: '请选择审核状态',
      trigger: 'blur'
    }],
    addDisplay:false,
    editDisplay:false,
  }, {
    label: '审核意见',
    prop: 'checkReason',
    type: 'textarea',
    span: 24,
    addDisplay: false,
    editDisplay: false
  }, {
    label: '备注',
    prop: 'remark',
    type: 'textarea',
    maxRows:6,
    minRows:4,
    span:24,
    display: false
  }, {
    label: '创建人ID',
    prop: 'creatorId',
    hide: true,
    display: false
  }, {
    label: '创建人名称',
    prop: 'creatorName',
    hide: true,
    display: false
  }, {
    label: '创建时间',
    prop: 'createtime',
    hide: true,
    display: false
  }]
};
